<!DOCTYPE html>
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui"
	xmlns:nf="http://novelfaces.be/jsf/comp"
	xmlns:nfsc="http://novelfaces.be/showcase/jsf/comp"
	xmlns:sp="http://java.sun.com/jsf/composite/source_panel"
	template="../../templates/componentTemplate.xhtml">

	<ui:define name="component_title">#{rb.numpad_dec_separator}</ui:define>
	<ui:define name="component_content">
		<section class="intro">
			<p>
				With this component you can configure what character to use for the
				<span class="info" title="numeric keypad">numpad</span> decimal
				separator.
			</p>
		</section>
		<p:accordionPanel id="accordion" autoHeight="false">
			<p:tab id="example1"
				title="Example 1 - inputText with numpad decimal separator according to locale of the viewroot">
				<ui:include src="numpadDecSeparator_example1.xhtml" />
				<sp:sourcePanel id="example1XhtmlPanel" header="#{rb.source_xhtml}"
					src="/nf/numpad-dec-sep/numpadDecSeparator_example1.xhtml" />
				<sp:sourcePanel id="example1BeanPanel" header="#{rb.source_bean}"
					sourceType="java"
					src="/src/be/novelfaces/showcase/NumpadDecimalSeparatorManagedBean.java" />
			</p:tab>
			<p:tab id="example2"
				title="Example 2 - inputText with numpad decimal separator configured as SPACE">
				<ui:include src="numpadDecSeparator_example2.xhtml" />
				<sp:sourcePanel id="example2XhtmlPanel" header="#{rb.source_xhtml}"
					src="/nf/numpad-dec-sep/numpadDecSeparator_example2.xhtml" />
			</p:tab>
			<p:tab id="example3"
				title="Example 3 - inputTextarea with numpad decimal separator configured as comma">
				<ui:include src="numpadDecSeparator_example3.xhtml" />
				<sp:sourcePanel id="example3XhtmlPanel" header="#{rb.source_xhtml}"
					src="/nf/numpad-dec-sep/numpadDecSeparator_example3.xhtml" />
			</p:tab>
			<p:tab id="example4"
				title="Example 4 - inputText with numpad decimal separator configured as a value expression">
				<ui:include src="numpadDecSeparator_example4.xhtml" />
				<sp:sourcePanel id="example4XhtmlPanel" header="#{rb.source_xhtml}"
					src="/nf/numpad-dec-sep/numpadDecSeparator_example4.xhtml" />
				<sp:sourcePanel id="example4BeanPanel" header="#{rb.source_bean}"
					sourceType="java"
					src="/src/be/novelfaces/showcase/NumpadDecimalSeparatorManagedBean.java" />
			</p:tab>
			<p:tab id="example5"
				title="Example 5 - inputText with numpad decimal separator configured as apostrophe">
				<ui:include src="numpadDecSeparator_example5.xhtml" />
				<sp:sourcePanel id="example5XhtmlPanel" header="#{rb.source_xhtml}"
					src="/nf/numpad-dec-sep/numpadDecSeparator_example5.xhtml" />
			</p:tab>

		</p:accordionPanel>
	</ui:define>
</ui:composition>
